#!/bin/bash
ffstatus=$(ps ux | grep [p]lugin | awk '{print $3}' | awk 'BEGIN{FS="."}{print $1}')

if [[ "$ffstatus" -eq "0" ]]; then
	sleep 10s
	[[ "$ffstatus" -eq "0" ]] && /etc/init.d/vncserver restart
fi